package com.jbp.model;

import java.util.Date;
import java.io.Serializable;

import com.baomidou.mybatisplus.annotation.TableField;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
/**
 * 送礼记录(SendGiftRecord)实体
 * @author cc
 * @since 2020-06-26 16:23:34
 */
@ApiModel(value="SendGiftRecord")
@Data
public class SendGiftRecord implements Serializable {
    private static final long serialVersionUID = 1L;
        
    
    private Integer id;

    //礼物id
    @ApiModelProperty(value="礼物id")    
    
    private Integer giftId;

    //礼物名称
    @ApiModelProperty(value="礼物名称")    
    
    private String giftName;

    //礼物图片
    @ApiModelProperty(value="礼物图片")    
    
    private String giftImg;

    //礼物价格
    @ApiModelProperty(value="礼物价格")
    private Integer giftPrice;

    //礼物数量
    @ApiModelProperty(value="礼物数量")
    private Integer num;

    //送礼物的用户id
    @ApiModelProperty(value="送礼物的用户id")
    private Integer fromUserId;

    //送礼物的用户姓名
    @ApiModelProperty(value="送礼物的用户姓名")
    @TableField(exist = false)
    private String fromUserName;
    //送礼物的用户性别
    @ApiModelProperty(value="送礼物的用户性别")
    @TableField(exist = false)
    private String fromUserSex;
    //送礼物的用户头像
    @ApiModelProperty(value="送礼物的用户头像")
    @TableField(exist = false)
    private String fromUserImg;
    @ApiModelProperty(value="送礼物的用户等级")
    @TableField(exist = false)
    private Integer fromUserLevel;
    @TableField(exist = false)
    private boolean fromUserLevelOn;

    //收礼物的用户id
    @ApiModelProperty(value="收礼物的用户id")    
    private Integer toUserId;
    @TableField(exist = false)
    private String toUserName;
    //送礼物的用户性别
    @ApiModelProperty(value="送礼物的用户性别")
    @TableField(exist = false)
    private String toUserSex;
    //送礼物的用户头像
    @ApiModelProperty(value="送礼物的用户头像")
    @TableField(exist = false)
    private String toUserImg;
    //类型  shop商店, bag背包
    @ApiModelProperty(value="类型  shop商店, bag背包")    
    
    private String type;

    //房间id
    @ApiModelProperty(value="房间id")    
    
    private Integer roomId;

    //创建时间
    @ApiModelProperty(value="创建时间")    
@JsonFormat(pattern="yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")    
    private Date createTime;

}